import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: ttq
 * Date: 13-7-8
 * Time: 上午10:40
 * To change this template use File | Settings | File Templates.
 */
public class PersonInfo implements Serializable {
    private static final long serialVersionUID = 406372584941336123L;
    private String account;
    private String ip;
    private Date loginDate;

    public boolean equals(Object obj) {
        if (obj == null || !(obj instanceof PersonInfo)) {
            return false;
        }

        return getAccount().equalsIgnoreCase(((PersonInfo) obj).getAccount());
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }
}
